﻿//------------------------------------------------------------------------------
// <copyright file="Samples.cs" company="Robert MacLean">
//      Copyright © Robert MacLean.  All Rights Reserved.
// </copyright>
//
//  This code released under the terms of the 
//  Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.)
//------------------------------------------------------------------------------

namespace FindResultsTweak
{
    using System.Collections.Generic;
    using System.Collections.ObjectModel;

    class Samples
    {
        private List<Sample> samples = new List<Sample>()
        {
            new Sample() {
                Filename = "Configuration",
                Path = @"C:\Code\FindResultsTweak\Configuration.cs",
                Directory = @"\Code\FindResultsTweak\",
                Drive = "C:",
                Extension = ".cs",
                Line = "108",
                MatchedText = "backgroundColor",
                Name = "Configuration",
                EndColIfFirst = "35",
                SpanEndColumn = "35",
                SummaryOfHit = "int backgroundColorValue = (int)findResultsRegistryKey.GetValue(\"Plain Text Background\");",
                TextOfFirstLine = "               int backgroundColorValue = (int)findResultsRegistryKey.GetValue(\"Plain Text Background\");",
                TextOfSpannedLines = "               int backgroundColorValue = (int)findResultsRegistryKey.GetValue(\"Plain Text Background\");", 
                SpanEndLine = "108", 
                Column = "21" },
            new Sample() {
                Filename = "Configuration",
                Path = @"C:\Code\FindResultsTweak\Configuration.cs",
                Directory = @"\Code\FindResultsTweak\",
                Drive = "C:",
                Extension = ".cs",
                Line = "110",
                MatchedText = "backgroundColor",
                Name = "Configuration",
                EndColIfFirst = "35",
                SpanEndColumn = "35",
                SummaryOfHit = "if (backgroundColorValue == 33554432)",
                TextOfFirstLine = "                if (backgroundColorValue == 33554432)",
                TextOfSpannedLines = "                if (backgroundColorValue == 33554432)", 
                SpanEndLine = "110",
                Column = "21"},
            new Sample() {
                Filename = "Configuration",
                Path = @"C:\Code\FindResultsTweak\Configuration.cs",
                Directory = @"\Code\FindResultsTweak\",
                Drive = "C:",
                Extension = ".cs",
                Line = "112",
                MatchedText = "backgroundColor",
                Name = "Configuration",
                EndColIfFirst = "35",
                SpanEndColumn = "35",
                SummaryOfHit = " backgroundColorValue = 16777215; // white",
                TextOfFirstLine = "                    backgroundColorValue = 16777215; // white",
                TextOfSpannedLines = "                    backgroundColorValue = 16777215; // white", 
                SpanEndLine = "112",
                Column = "21" },
            new Sample() {
                Filename = "Configuration",
                Path = @"C:\Code\FindResultsTweak\Configuration.cs",
                Directory = @"\Code\FindResultsTweak\",
                Drive = "C:",
                Extension = ".cs",
                Line = "119",
                MatchedText = "backgroundColor",
                Name = "Configuration",
                EndColIfFirst = "71",
                SpanEndColumn = "71",
                SummaryOfHit = " Color backgroundColour = Color.FromArgb(backgroundColorValue);",
                TextOfFirstLine = "               Color backgroundColour = Color.FromArgb(backgroundColorValue);",
                TextOfSpannedLines = "               Color backgroundColour = Color.FromArgb(backgroundColorValue);", 
                SpanEndLine = "119",
                Column = "57"}
        };

        public ReadOnlyCollection<Sample> AllSamples
        {
            get
            {
                return samples.AsReadOnly();
            }
        }
    }
}
